import axios from "@/axios";

// 获取三天内天气
export function getWeatherService (location) {
  return axios.get('https://devapi.qweather.com/v7/weather/3d', {
    params: {
      location,
      key: 'e9691a52d05148e28df3546aab14af2b'
    }
  })
}

// 获取实时天气
export function getNowWeatherService (location) {
  return axios.get('https://devapi.qweather.com/v7/weather/now', {
    params: {
      location,
      key: 'e9691a52d05148e28df3546aab14af2b'
    }
  })
}